import { createBrowserRouter } from "react-router-dom";

import Home from "../pages/home/Index";
import Index from "../pages/index/Index";
import Message from "../pages/message/Index";
import Todo from "../pages/todo/Index";
import List from "../pages/list/Index";
import Detail from "../pages/detail/Index";
import Login from "../pages/login/Index";
import App from "../App";
import Cheng from "../pages/cheng/Indexx";
import Order from "../pages/order/Index";
import Sit from "../pages/sit/Index";
import Fu from "../pages/fu/Index";
import Zheng from '../pages/zeng/Index'
import CC from '../pages/cc/Index'
let routes = createBrowserRouter([
  {
    path: "/",
    element: <App></App>,
    children: [
      {
        path: "/home",
        element: <Home></Home>,
      },
      {
        path: "/index",
        element: <Index></Index>,
      },
      {
        path: "/message",
        element: <Message></Message>,
      },
      {
        path: "/todo",
        element: <Todo></Todo>,
      },
    ],
  },
  {
    path: "/list",
    element: <List></List>,
  },
  {
    path: "/detail/:id",
    element: <Detail></Detail>,
  },
  {
    path: "/login",
    element: <Login></Login>,
  },
  {
    path: "/cheng",
    element: <Cheng></Cheng>,
  },
  {
    path: "/order",
    element: <Order></Order>,
  },
  {
    path: "/sit",
    element: <Sit></Sit>,
  },
  {
    path: "/fu",
    element: <Fu></Fu>,
  },
  {
    path:'/zheng',
    element:<Zheng></Zheng>

  },
  {
    path:'/CC',
    element:<CC></CC>
  }
]);

export default routes;
